#ifndef __TEMP__
#define __TEMP__
#include"show.cc"
#endif
#include<vector>


void Test(string str, vector<string> ans, int num)
{
    string ret = Solution().longestPalindrome(str);
    for (auto& e : ans)
    {
        if (ret == e)
        {
            cout << "示例" << num << "通过！" << endl;
            return;
        }
    }
    cout << "示例" << num << "未通过, 输出：" << ret << endl;
}

int main()
{
    Test("babab", {"bab", "aba"}, 1);
    Test("cbbd", {"bb"}, 2);
    return 0;
}